package api

import (
	"smc-admin/controller"

	"github.com/gin-gonic/gin"
)

func Types(path *gin.RouterGroup) {
	router := path.Group("/types")
	{
		router.GET("/get", controller.GetTypes)
		router.POST("/add", controller.AddTypes)
		router.GET("/findByPage", controller.FindTypesByPage)
		router.PUT("/update", controller.UpdateTypes)
		router.DELETE("/delete", controller.DeleteTypes)
	}
}
